package com.foreverwin.mes.lims.service.impl;

import com.foreverwin.mes.core.base.FrontPage;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.foreverwin.mes.lims.model.InspectEndConfirm;
import com.foreverwin.mes.lims.mapper.InspectEndConfirmMapper;
import com.foreverwin.mes.lims.service.InspectEndConfirmService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Levy
 * @since 2020-03-04
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class InspectEndConfirmServiceImpl extends ServiceImpl<InspectEndConfirmMapper, InspectEndConfirm> implements InspectEndConfirmService {


    @Autowired
    private InspectEndConfirmMapper inspectEndConfirmMapper;

    @Override
    public Page<InspectEndConfirm> selectPage(FrontPage<InspectEndConfirm> frontPage, InspectEndConfirm inspectEndConfirm) {
        EntityWrapper<InspectEndConfirm> queryWrapper = new EntityWrapper<>();
        queryWrapper.setEntity(inspectEndConfirm);
        return super.selectPage(frontPage.getPagePlus(), queryWrapper);
    }

    @Override
    public List<InspectEndConfirm> selectList(InspectEndConfirm inspectEndConfirm) {
        EntityWrapper<InspectEndConfirm> queryWrapper = new EntityWrapper<>();
        queryWrapper.setEntity(inspectEndConfirm);
        return super.selectList(queryWrapper);
    }


}